package com.wyd.flowable;

//import org.flowable.ui.common.security.ApiHttpSecurityCustomizer;
//import org.flowable.ui.common.security.DefaultApiHttpSecurityCustomizer;
//import org.flowable.ui.common.security.FlowableUiSecurityAutoConfiguration;

import org.flowable.ui.common.security.ApiHttpSecurityCustomizer;
import org.flowable.ui.common.security.DefaultApiHttpSecurityCustomizer;
import org.flowable.ui.common.security.FlowableUiSecurityAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration;
import org.springframework.context.annotation.Bean;

//@EnableConfigurationProperties({FlowableCommonAppProperties.class, FlowableRestAppProperties.class})
//@Configuration

@SpringBootApplication(exclude = {
		SecurityAutoConfiguration.class,
		UserDetailsServiceAutoConfiguration.class,
		FlowableUiSecurityAutoConfiguration.class
})
//@ComponentScan(excludeFilters = {
//		@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = ModelerSecurityConfiguration.class)
//		, @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = RemoteAccountResource.class)
//})
public class FlowableApplication {

	public static void main(String[] args) {
		SpringApplication.run(FlowableApplication.class, args);
	}

	@Bean
	public ApiHttpSecurityCustomizer defaultApiHttpSecurityCustomizer() {
		return new DefaultApiHttpSecurityCustomizer();
	}
}
